#!/usr/bin/env python3.6
# -*- encoding: utf-8 -*-
'''
@File    :   urls.py
@Time    :   2020/09/28 20:48:12
@Author  :   Tang Jing 
@Version :   1.0.0
@Contact :   yeihizhi@163.com
@License :   (C)Copyright 2020
@Desc    :   None
'''

# here put the import lib
from django.urls import include, path, re_path
from django.conf.urls import url

from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework.routers import DefaultRouter

from api.views.general import *
# code start
router = DefaultRouter()
# account router setting
# router.register(r'uri', [viewset])
router.register(r'variabe',envVarViewSet)

# set customer url config define
urlpatterns = format_suffix_patterns([
    re_path(r'sniffer', sniffer.as_view()),
    re_path(r'notify', notify.as_view()),
    re_path(r"publish_choices", publish_choices.as_view()),
    re_path(r'ticket',ticket.as_view()),
    re_path(r'signature',ticket.as_view())
])


urlpatterns += router.urls